home *** CD-ROM | disk | FTP | other *** search
- property meSprite, mePlacedSprite, meLoc, refRect, meGroup
- global gmObject, autoMoveObject, sndObject
-
- on beginSprite me
- meSprite = sprite(me.spriteNum)
- mePlacedSprite = sprite(me.spriteNum + 20)
- meLoc = meSprite.loc
- meGroup = integer(mePlacedSprite.member.name)
- refRect = sprite(4).rect
- end
-
- on mouseDown me
- meSprite.locZ = 155
- mPos = the mouseLoc - meLoc
- repeat while the mouseDown
- meSprite.loc = the mouseLoc - mPos
- updateStage()
- end repeat
- end
-
- on mouseUp me
- if meGroup = gmObject.actualGroup then
- meSprite.locZ = me.spriteNum
- if inside(meSprite.loc, refRect) then
- sndObject.respondSnd(1, 8)
- meSprite.member = member("dum", 2)
- mePlacedSprite.loc = sprite(99).loc
- updateStage()
- gmObject.buildBoat(meGroup)
- repeat while soundBusy(2)
- end repeat
- if the frameLabel <> "fail" then
- sndObject.respondSnd(2, 4, 1, 1)
- end if
- else
- autoMove(autoMoveObject, meSprite, meLoc)
- end if
- else
- autoMove(autoMoveObject, meSprite, meLoc)
- sndObject.respondSnd(2, 5, 1, 1)
- end if
- end
-
- on mouseEnter me
- cursor([500, 501])
- end
-
- on mouseLeave me
- cursor(0)
- end
-
- on endSprite me
- cursor(0)
- end
-